from domain.UserInfo import UserInfo
from domain.UserBlogStatistics import UserBlogStatistics
class User:
    def __init__(self, userInfo, userBlogStatistics):
        """
        数据结构描述:
        userInfo: 用户信息
        userBlogStatistics: 用户微博统计信息
        """
        self.userInfo = userInfo
        self.userBlogStatistics = userBlogStatistics
    
    def json(self):
        return {
            "userInfo": self.userInfo.json(),
            "userBlogStatistics": self.userBlogStatistics.json()
        }